package com.lyz.anli;

import java.util.Arrays;

/**
 * 数组拷贝
 */
public class De4szkb {
    public static void main(String[] args) {
        int[] arr={10,66,13,85,45};
        int[] szkb = szkb(arr);
        System.out.println(Arrays.toString(szkb));
    }
    public static int[] szkb(int[] arr){
        if(arr==null){
            return null;
        }
        int[] arb = new int[arr.length];
        for (int i = 0; i < arr.length ; i++) {
            arb[i]=arr[i];
        }
        return arb;
    }
}
